import request from '@/utils/request'

// 注册请求
export const regAPI = obj => {
  return request.post('/api/reg', obj)
}
export const loginAPI = obj => {
  return request.post('/api/login', obj)
}
// 获取客户信息
export const getUserAPI = () => {
  return request.get('/my/userinfo')
}
// 修改客户信息
export const putUserAPI = obj => {
  return request.put('/my/userinfo', obj)
}
// 修改密码
export const updatedPwdAPI = obj => {
  return request.patch('/my/updatepwd', obj)
}
// 上传头像
export const uplodaAPI = src => {
  return request.patch('/my/update/avatar', { avatar: src })
}
